package com.warm.common.entity;

import lombok.Data;

@Data
public class SysUser {

    public SysUser(String account, Integer sex, Integer age) {
        this.account = account;
        this.sex = sex;
        this.age = age;
    }

    public SysUser(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public SysUser() {
    }

    public Boolean check(Integer age){
        return age > 18 ? true : false;
    }

    private Integer id;

    private String account;

    private String password;

    private String name;

    private Integer sex;

    private Integer age;
}
